package com.rp.configure.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.rp.configure.entity.Subject;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author vicente
 * @since 2021-07-16
 */
@Mapper
public interface SubjectMapper extends BaseMapper<Subject> {

    IPage<Subject> listByUserId(Page<Subject> subjectPage, @Param("userId") String userId);

    List<Subject> getList( @Param("userId")String userId);
}
